
.br-switch__label {
  display: inline-block;
  cursor: pointer;
  overflow: hidden;
  line-height: 24px;
  font-size: 14px;
}
.br-switch__container{
  position: relative;
  width: 52px;
  height: 24px;
  margin: 0 10px;
  line-height: 24px;
  font-size: 14px;
}
.br-switch__input{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0 !important;
  appearance: none;
  user-select: none;
  outline: none;
  z-index: -1;
}
.br-switch__indicator {
  display: block;
  height: 100%;
  margin: 0;
  cursor: pointer;
  border-radius: 30px;
  user-select: none;
  outline: none;
  background: #d0d0d0;
  position: relative;
  transition: all 0.3s ease;

  &-disabled{
    opacity: .6;
    cursor: not-allowed;
  }

  &::before {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    background: #fff;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    transition: all 0.3s ease;
  }
}
.br-switch__input{
  &:checked {
    &   + .br-switch__indicator {
      background: #44d34e;

      &::before {
        left: 100%;
        margin-left: -2px;
        transform: translateX(-100%);
      }
    }
  }

  &:active {
    &  + .br-switch__indicator::before{
      width: 26px;
    }
  }
}
.br-switch__text{
  position: absolute;
  top: 0;
  color: #fff;
  user-select: none;

  &-left{
    left: 8px;
  }

  &-right{
    right: 8px;
  }

  &-disabled{
    right: 8px;
  }
}
